package com.cctc.rds.raft.core.util;

import java.util.concurrent.atomic.AtomicInteger;

public class IdUtils {
    private static final AtomicInteger index = new AtomicInteger(0);

    public static int newId() {
        return index.getAndIncrement();
    }
}
